import request from '@/utils/request'

export function getReservationTime(type) {
	return request({
		url: '/mobile/reservation/getReservationTime?type='+type,
		headers: {
			isToken: false
		},
		method: 'get'
	})
}

export function apply(data) {
	return request({
		url: '/mobile/reservation/apply',
		headers: {
			isToken: false
		},
		method: 'post',
		data : data
	})
}

export function mine(driverId){
	return request({
		url: '/mobile/reservation/mine?driverId='+driverId,
		headers: {
			isToken: false
		},
		method: 'get'
	})
}